<?php
/**
 * @purpose
 * @Author: Madou
 * @Time  : 2022/8/16 12:38
 */

namespace App\Trip\Orders\Traits;

use Carbon\Carbon;

trait WorkTimeTrait
{

    public function getWorkTimes(): array
    {
        return [
            'start_time'   => $this->workStartTime(),
            'end_time'     => $this->workEndTime(),
            'current_time' => Carbon::now()->hour,
        ];
    }

    public function workStartTime(): int
    {
        return 9;
    }

    public function workEndTime(): int
    {
        return 21;
    }

}